using System.ServiceModel;
using System.Collections.Generic;

namespace WCFDicing.ServiceContracts
{
    /// <summary>
    /// prosba o odlaczenie gracza od gry
    /// </summary>
    [MessageContract]
    public class LeaveRoomRequest
    {
        /// <summary>
        /// id gracza ktory chce sie odlaczyc
        /// </summary>
        private System.Int32 PlayerIDField;

        /// <summary>
        /// get i set id gracza ktory chce sie odlaczyc
        /// </summary>
        [MessageBodyMember( Order = 0 )]
        public System.Int32 PlayerID
        {
            get { return PlayerIDField; }
            set { PlayerIDField = value; }
        }

        /// <summary>
        /// id gry z ktorej gracz wychodzi
        /// </summary>
        private System.Int32 GameIDField;

        /// <summary>
        /// get i set id gry z ktorej gracz wychodzi
        /// </summary>
        [MessageBodyMember( Order = 1 )]
        public System.Int32 GameID
        {
            get { return GameIDField; }
            set { GameIDField = value; }
        }
    }
}


